<?php

namespace app\api\controller;

use think\Controller;
use think\Request;

class Data extends Controller
{

    const MSG_SUCCESS = '请求成功';
    const MSG_ERROR = '请求失败';


    /**
     * 与户主关系
     */
    public function getRelatedHouseholder()
    {
        $list = get_relatedHouseholder();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 文化程度
     */
    public function getEducation()
    {
        $list = get_education();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 健康状况
     */
    public function getHealth()
    {
        $list = get_health();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 宗教信仰
     */
    public function getReligiousFaith()
    {
        $list = get_religiousFaith();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 劳动技能
     */
    public function getLaborSkills()
    {
        $list = get_laborSkills();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 务工状况
     */
    public function getWorkStatus()
    {
        $list = get_workStatus();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 贫困属性
     */
    public function getPovertydegree()
    {
        $list = povertydegree();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 致贫原因
     */
    public function getPovertyreason()
    {
        $list = povertyreason();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

    /**
     * 脱贫属性
     */
    public function getOutpoverty()
    {
        $list = outpoverty();

        return show(config('status.SUCCESS_STATUS'),self::MSG_SUCCESS, $list);
    }

}